package oop5.pc;

public class Rom implements YingPan {
  private int volume; //硬盘容量

    public Rom(int volume) {
        this.volume = volume;
    }

    @Override
    public void show() {
        System.out.println("内存容量是：" + volume + "GB");
    }   //实现接口YingPan的类

    public int getVolume() {
        return volume;
    }

}
